package h0724;

import java.util.regex.Pattern;

public class Test {
    public static void main(String[] args) {
        Pattern p=Pattern.compile("[A-Z]+");
        String word="stu-stand";
        boolean matches = word.matches("[a-zA-Z]-[a-zA-Z]");
        System.out.println(matches);

    }
}
